#coding=utf-8

"""
  全局配置,
"""

JWT_SECRET = 'vQHEA6N9WKIUYFwfXKwXupfRQzZl0OmR'

DEFAULT_RECOMEND_DB_NAME = 'test_db'
DEFAULT_SUBSCRIBE_DB_NAME = 'test_db'
DEFAULT_USER_DB_NAME = 'test_db'
REDIS_PREFIX = 'user_module'
# password generator salt
DEFAULT_AUTH_SALT = 'QcB2017AssEts'

# 数据库连接池配置
DB_SETTING_DICT={
    "online" : {
        "type": "mysql",
        "conf": {
            "host": "qcbtest.mysqldb.chinacloudapi.cn",
            "user": "qcbtest%qb",
            "pass": "demopp.in1309",
            "db": "test",
            "port": 3306,
            "max": 2,
            "min": 1
        }
    },
    "test_db" : {
        "type": "mysql",
        "conf": {
            "host": "qcbtest.mysqldb.chinacloudapi.cn",
            "user": "qcbtest%qb",
            "pass": "demopp.in1309",
            "db": "test",
            "port": 3306,
            "max": 2,
            "min": 1
        }
    },
    "qcb_old":{
        "type":"mysql",
        "conf":{
            "host":"139.219.199.242",
            "user":"scy",
            "db":"scy",
            "pass":"scY12345",
            "port":3306,
            "max":1,
            "min":1
        }
    },
    "qcb_new":{
        "type": "mysql",
        "conf": {
            "host": "qcbtest.mysqldb.chinacloudapi.cn",
            "user": "qcbtest%qb",
            "pass": "demopp.in1309",
            "db": "qcb_new",
            "port": 3306,
            "max": 2,
            "min": 1
        }
    },
    "qcb_ol":{
        "type": "mysql",
        "conf": {
            "host": "qcbtest.mysqldb.chinacloudapi.cn",
            "user": "qcbtest%qb",
            "pass": "demopp.in1309",
            "db": "qcb_ol",
            "port": 3306,
            "max": 2,
            "min": 1
        }
    }
}
REDIS_SETTING = {
    'memory':{
        'host':'139.219.236.33',
        'pass':'demoppredis',
        'port': 63790,
        'db': 8
    },
    'auth':{
        'host':'139.219.236.33',
        'pass':'demoppredis',
        'port': 63790,
        'db': 9
    }
}